#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct student ss;
struct student
{
    //结构体成员需要偏移对齐
    char name[21];
    int age;
    int score[3];
};

int main()
{
    ss *p = (ss *)malloc(sizeof(ss) * 3);
    for (int i = 0; i < 3; i++)
    {
        scanf("%s%d%d%d%d", p[i].name, &p[i].age, &p[i].score[0], &p[i].score[1], &p[i].score[2]);
    }
    for (int i = 0; i < 3; i++)
    {
        printf("姓名：%s\n", p[i].name);
        printf("年龄：%d\n", p[i].age);
        printf("成绩1：%d\n", p[i].score[0]);
        printf("成绩2：%d\n", p[i].score[1]);
        printf("成绩3：%d\n", p[i].score[2]);
    }

    free(p);
    return 0;
}